avoid crash when doing shutdown with active cpupools
authorJuergen Gross <jgross@suse.com>
Wed, 23 Jul 2014 16:03:19 +0000 (18:03 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 23 Jul 2014 16:03:19 +0000 (18:03 +0200)
commit05377dede434c746e6708f055858378d20f619db
tree643ae23ab16085823ab61ead4751a0f3a6cebe4d
parenteb976b2e4a96eaa53e88723ce1ef87baeccb4ba2
avoid crash when doing shutdown with active cpupools

When shutting down the machine while there are cpus in a cpupool other than
Pool-0 a crash is triggered due to cpupool handling rejecting offlining the
non-boot cpus in other cpupools.

It is easy to detect this case and allow offlining those cpus.

Reported-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Tested-by: Stefan Bader <stefan.bader@canonical.com>
xen/common/cpupool.c